﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<amk.Models.CADASTRO>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">Criar Cadastro</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Criar</h2>

    <% using (Html.BeginForm("Criar", "Cadastro", FormMethod.Post, new { id = "formCadastro" })){%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
           <%: Html.Hidden("SEQ_CADASTRO", String.Format("{0:dd/MM/yyyy}", DateTime.Today)) %>
            <legend>Criação de Cadastro</legend>

            <fieldset title="Cadastro">
              <legend>Cadastro</legend>
              <div>
                <div>
                  Data<br />
                  <%: String.Format("{0:dd/MM/yyyy}", DateTime.Today)%>
                </div>
                <div>
                    <%: Html.LabelFor(model => model.DSC_SITUACAO_CADASTRO) %><br />
                    <%: Html.DropDownListFor(model => model.DSC_SITUACAO_CADASTRO, new[]{
                            new SelectListItem{Text="Ativo", Value="A"},              
                            new SelectListItem{Text="Inativo", Value="I"},              
                            new SelectListItem{Text="Suspenso", Value="S"},
                            new SelectListItem{Text="Cancelado", Value="C"}})%>
                    <%: Html.ValidationMessageFor(model => model.DSC_SITUACAO_CADASTRO)%>
                </div>
              </div>
            </fieldset>

            <fieldset title="Academia">
              <legend>Academia</legend>
                <div>
                    <%: Html.LabelFor(model => model.SEQ_ACADEMIA) %><br />
                    <%: Html.DropDownListFor(model => model.SEQ_ACADEMIA, (IEnumerable<SelectListItem>)ViewData["listaAcademia"])%>
                    <%: Html.ValidationMessageFor(model => model.SEQ_ACADEMIA)%>
                </div>
                <div>
                  <%: Html.LabelFor(model=> model.FLG_CONTATO_ACADEMIA) %><br />
                  <%: Html.CheckBoxFor(model=>model.FLG_CONTATO_ACADEMIA) %>
                  <%: Html.ValidationMessageFor(model=>model.FLG_CONTATO_ACADEMIA) %>
                </div>
            </fieldset>

            <fieldset title="Graduação">
              <legend>Graduação</legend>
              <div>
                <%: Html.LabelFor(model=>model.SEQ_CADASTRO) %>
              </div>
            </fieldset>

            <fieldset title="Cadastro CBK">
              <legend>Cadastro CBK</legend>
                <div>
                  <div>
                    <%: Html.LabelFor(model=> model.FLG_CADASTRO_CBK) %><br />
                    <%: Html.CheckBoxFor(model =>model.FLG_CADASTRO_CBK)%>
                    <%: Html.ValidationMessageFor(model => model.FLG_CADASTRO_CBK)%>
                  </div>
                  <div>
                    <%: Html.LabelFor(model => model.DAT_CADASTRO_CBK) %><br />
                    <%: Html.TextBoxFor(model => model.DAT_CADASTRO_CBK, new { size = "10", maxlength = "10" })%>
                    <%: Html.ValidationMessageFor(model=>model.DAT_CADASTRO_CBK) %>
                  </div>
                  <div>
                    <%: Html.LabelFor(model => model.DSC_SITUACAO_CADASTRO_CBK) %><br />
                    <%: Html.DropDownListFor(model => model.DSC_SITUACAO_CADASTRO_CBK, new[]{
                            new SelectListItem{Text="Ativo", Value="A"},              
                            new SelectListItem{Text="Inativo", Value="I"},              
                            new SelectListItem{Text="Suspenso", Value="S"},
                            new SelectListItem{Text="Cancelado", Value="C"}})%>
                    <%: Html.ValidationMessageFor(model => model.DSC_SITUACAO_CADASTRO_CBK)%>
                  </div>
                </div>
            </fieldset>

            <fieldset title="Dados Pessoais">
              
              <legend>Dados Pessoais</legend>
              <div>
                  <%: Html.LabelFor(model => model.DSC_NOME)%><br />
                  <%: Html.TextBoxFor(model => model.DSC_NOME, new { size = "100", maxlength = "250" })%>
                  <%: Html.ValidationMessageFor(model => model.DSC_NOME) %>
              </div>
              <div>
                  <%: Html.LabelFor(model => model.DAT_NASCIMENTO)%><br />
                  <%: Html.TextBoxFor(model => model.DAT_NASCIMENTO, new { size = "10", maxlength = "10" })%>
                  <%: Html.ValidationMessageFor(model => model.DAT_NASCIMENTO)%>
              </div>
              <div>
                  <%: Html.LabelFor(model => model.NUM_IDENTIDADE)%><br />
                  <%: Html.TextBoxFor(model => model.NUM_IDENTIDADE, new { size = "80", maxlength = "250" })%>
                  <%: Html.ValidationMessageFor(model => model.NUM_IDENTIDADE)%>
              </div>
              <div>
                  <%: Html.LabelFor(model => model.NUM_CPF)%><br />
                  <%: Html.TextBoxFor(model => model.NUM_CPF, new { size = "80", maxlength = "250" })%>
                  <%: Html.ValidationMessageFor(model => model.NUM_CPF)%>
              </div>
            </fieldset>

            <fieldset title="Endereço completo">
                <legend>Endereço completo</legend>
                <div>
                    <%: Html.LabelFor(model => model.DSC_ENDERECO) %><br />
                    <%: Html.TextBoxFor(model => model.DSC_ENDERECO, new { size = "60", maxlength = "250" })%>
                    <%: Html.ValidationMessageFor(model => model.DSC_ENDERECO) %>
                </div>
            
                <div>
                    <%: Html.LabelFor(model => model.NOM_BAIRRO) %><br />
                    <%: Html.TextBoxFor(model => model.NOM_BAIRRO, new { size = "40", maxlength = "250" })%>
                    <%: Html.ValidationMessageFor(model => model.NOM_BAIRRO) %>
                </div>
            
                <div>
                  <div>
                      <%: Html.LabelFor(model => model.NOM_CIDADE) %><br />
                      <%: Html.TextBoxFor(model => model.NOM_CIDADE, new { size = "40", maxlength = "250" })%>
                      <%: Html.ValidationMessageFor(model => model.NOM_CIDADE) %>
                  </div>
            
                  <div>
                      <%: Html.LabelFor(model => model.SEQ_UF) %><br />
                      <%: Html.DropDownListFor(model => model.SEQ_UF, (IEnumerable<SelectListItem>)ViewData["listaUF"])%>
                      <%: Html.ValidationMessageFor(model => model.SEQ_UF) %>
                  </div>
                </div>
            
                <div>
                    <%: Html.LabelFor(model => model.NUM_CEP) %><br />
                    <%: Html.TextBoxFor(model => model.NUM_CEP, new { size = "9", maxlength = "9" })%>
                    <%: Html.ValidationMessageFor(model => model.NUM_CEP) %>
                </div>
            </fieldset>

            <fieldset title="E-Mail">
              <legend>E-Mail</legend>
              <div>
                <%: Html.LabelFor(model => model.DSC_EMAIL) %><br />
                <%: Html.TextBoxFor(model => model.DSC_EMAIL, new { size="50", maxlength="200" })%>
                <%: Html.ValidationMessageFor(model => model.DSC_EMAIL)%>
              </div>
            </fieldset>

            <fieldset title="Responsáveis">
              <legend>Resposáveis</legend>
              <div>
                <div>
                  <%: Html.LabelFor(model => model.NOM_PAI) %><br />
                  <%: Html.TextBoxFor(model=>model.NOM_PAI, new{ size = "80", maxlength = "250" }) %>
                  <%: Html.ValidationMessageFor(model => model.NOM_PAI)%>
                </div>
                <div>
                  <%: Html.LabelFor(model => model.NOM_MAE) %><br />
                  <%: Html.TextBoxFor(model => model.NOM_MAE, new { size = "80", maxlength = "250" })%>
                  <%: Html.ValidationMessageFor(model => model.NOM_MAE)%>
                </div>
              </div>
            </fieldset>

            <fieldset title="Telefones de Contato">
              <legend>Telefones de Contato</legend>
              <div>
                <div>
                  <%: Html.LabelFor(model => model.NUM_TELEFONE_CASA) %><br />
                  <%:Html.TextBoxFor(model => model.NUM_TELEFONE_CASA, new { size="13", maxlength = "13" })%>
                  <%:Html.ValidationMessageFor(model => model.NUM_TELEFONE_CASA) %>
                </div>
                <div>
                  <%: Html.LabelFor(model => model.NUM_TELEFONE_CELULAR) %><br />
                  <%:Html.TextBoxFor(model => model.NUM_TELEFONE_CELULAR, new { size = "13", maxlength = "13" })%>
                  <%:Html.ValidationMessageFor(model => model.NUM_TELEFONE_CELULAR)%>
                </div>
              </div>
              <div>
                <div>
                  <%: Html.LabelFor(model => model.NUM_TELEFONE_TRABALHO) %><br />
                  <%:Html.TextBoxFor(model => model.NUM_TELEFONE_TRABALHO, new { size = "13", maxlength = "13" })%>
                  <%:Html.ValidationMessageFor(model => model.NUM_TELEFONE_TRABALHO)%>
                </div>
                <div>
                  <%: Html.LabelFor(model => model.NUM_TELEFONE_FAX) %><br />
                  <%:Html.TextBoxFor(model => model.NUM_TELEFONE_FAX, new { size = "13", maxlength = "13" })%>
                  <%:Html.ValidationMessageFor(model => model.NUM_TELEFONE_FAX)%>
                </div>
              </div>
            </fieldset>

            <fieldset title="Observações">
              <legend>Observações</legend>
              <div>
                <%: Html.LabelFor(model => model.DSC_OBSERVACAO)%><br />
                <%: Html.TextArea("DSC_OBSERVACAO")%>
                <%: Html.ValidationMessageFor(model => model.DSC_OBSERVACAO)%>
              </div>
            </fieldset>


            <p><input type="submit" value="Criar" /></p>

        </fieldset>
  

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

